package feng.process.cont;

public class ProcessConst {
    
    /**
     * 系统中部分使用的字符
     */
    public static final String SYS_CHAR_COMMA = ",";
    public static final String SYS_CHAR_EMPTYSTR = "";

    /**
     * 配置文件相关
     * CONF_DIR : 配置文件目录
     */
    public static final String CONF_DIR = "conf";
    public static final String CONF_FILE = "conf.properties";
    public static final String KEY_PROCESS_DIR = "process.dir";
    public static final String KEY_PROCESS_LOADED_DOT = "processes.loaded.";
    public static final String KEY_WAIT_USER_SELECTER = "waiting.user.selecter";
    
    /**
     * 流程实例状态
     * 0:草稿
     * 1:已发起
     * 2:废除或中止
     * 3:归档
     */
    public static final int PROCESS_INS_STATUS_DRAFT = 0;
    public static final int PROCESS_INS_STATUS_RUNNING = 1;
    public static final int PROCESS_INS_STATUS_STOPED = 2;
    public static final int PROCESS_INS_STATUS_ARCHIVED = 3;
    
    /**
     * 环节处理状态：
     * 0：待处理
     * 1：已处理
     */
    public static final int PROCESS_TASK_STATUS_WAITING = 0;
    public static final int PROCESS_TASK_STATUS_DEALED = 1;
    
    /**
     * 环节结束标识
     */
    public static final String PROCESS_TASK_STEP_ID_FINISH = "#finish";
    
    /**
     * 待办人员选择规则：动态指定人员
     */
    public static final String TASK_USER_SEL_ROLE_DYNSPECIFY = "dynamically_specify";
}
